// Do this and all 8th tick to graph

package com.newmedia.gui;

import com.newmedia.main.Main.mKey;

public class Notes {
	private String note = "C";
	private int length = 1;
	//private Sound sound;
	private String[] notesInScale = {"C", "D", "E", "F", "G", "A", "B", "C"};
		
	public Notes(int x, int y, Key keyChoice){
		notesInScale = keyChoice.getKey();
		note = notesInScale[notesInScale.length - y / GraphicMusic.scale];
		length = 1;
	}
	
	public String getNote() {
		return note;
	}
	
	public void addToLength(int firstXCoordinate, int secondXCoordinate) {
		length = length + (secondXCoordinate - firstXCoordinate) / GraphicMusic.scaleX;
	}
	
	public int getLength() {
		return length;
	}
	
}